console.log("preload", process.version);
const { contextBridge, ipcRenderer } = require("electron");

contextBridge.exposeInMainWorld("myAPI", {
  xyz: 222333,
  savefile: (data) => {
    ipcRenderer.send("file-save", data);
  },
  readfile: () => {
    return ipcRenderer.invoke("file-read");
  },
});
